import { Controller, Get, UseGuards } from '@nestjs/common';
import { AppService } from './app.service';
import { LoginGuard } from './login.guard';
import { ApiBearerAuth } from '@nestjs/swagger';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get('aaa')
  aaa() {
    return 'aaa'
  }

  @Get('bbb')
  @UseGuards(LoginGuard)
  @ApiBearerAuth()
  bbb() {
    return 'bbb'
  }

}
